function reloadReplyAdressList(){
	$.ajax({
		type : 'POST',
		url : "brand/replyAdress/list",
		success : function(data) {
			alert(data);
		}
	});
}

function checkUrl(){
	var regex =/^(https?:\/\/){1}/;
	if(!regex.test(trackingUrl)){
		$("#trackingUrlError").removeClass("hide").text("Tracking Domain is required.");
		return false;
	}
	$("#trackingUrlError").addClass("hide")
	return true;
}

function addBrandReply() {

	$("#newBrandModel").modal();
}

function newBrandReply() {
	$("#newId").val("");
	$("#newName").val("");
	$("#newAddress").val("");
	$("#newName").focus();
}

function reload() {
	var url = "brand/viewbrandreply";
	var options = "";
	$.ajax({
		type : 'POST',
		url : url,
		success : function(returnMessage) {
			alert(returnMessage);
		}
	});
}

function autoFillValue(obj) {
	$("#newId").val($(obj).attr("data-id"));
	$("#newName").val($(obj).attr("data-name"));
	$("#newAddress").val($(obj).attr("data-address"));
}